package us.clubadvocate.shared;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Pet implements IsSerializable
{
  public String name;
  public String owner;
  public String species;
  public String sex;
  public Date birth;
  public Date death;
  
  public String toString()
  {
    StringBuilder b = new StringBuilder();
    b.append( (name == null) ? "null" : name )
     .append(" : ")
     .append( (owner == null) ? "null" : owner)
     .append(" : ")
     .append( (species == null) ? "null" : species)
     .append(" : ")
     .append( (sex == null) ? "null" : sex)
     .append(" : ")
     .append( (birth == null) ? "null" : birth.toString())
     .append(" : ")
     .append( (death == null) ? "null" : death.toString());
    return b.toString();
  }
}
